Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional elixir 1.15 compatibility #426

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

tmaszk
Copy link
Contributor

@tmaszk tmaszk commented Jan 24, 2024

This is a follow on to PR #421 and should completely address Issue #419

The purpose of the new NewRelic.ErrorLogger module is to prevent Logger from displaying the MANY status messages caused by enabling handle_sasl_reports.

I don't like requiring the user update their :logger config to allow the agent to capture errors, but can't think of another way to do it.

This PR also has the nice side effect of not showing the error messages in the console when running mix test, because it no longer logs errors to the console during the unit tests.

@tpitale FYI. This PR plus #424, I think it would make a nice update for Elixir users.

@tpitale
Copy link
Contributor

tpitale commented Jan 25, 2024

Going to try this out in one of our apps for testing, hopefully today or tomorrow.

@tmaszk
Copy link
Contributor Author

tmaszk commented Jan 25, 2024

@tpitale Sounds good. If there are additional sasl messages that need to be silenced, it would be easy to add them to ErrorLogger.translate/4.

I originally thought about silencing all {_, :progress} messages, not just [:supervisor, :application_controller] but those two were the only messages that came up in my application.

@tpitale
Copy link
Contributor

tpitale commented Feb 1, 2024

This has been running great. I'm going to get one other person to take a look and then we can merge and release!

Thank you, again, so much @tmaszk

@tmaszk
Copy link
Contributor Author

tmaszk commented Feb 1, 2024

@tpitale That's great news!

I'd encourage you to consider including #427 before releasing. I made that PR after discovering a class of errors that were not being captured.

@tpitale tpitale merged commit c56373c into newrelic:master Feb 14, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants